<template>
    <div class="successBox">
        <div class="successTop">
            <img src="~@/assets/successIcon.png" class="successIcon">
            <div class="successTip">
                评论已提交成功！
            </div>
        </div>
        <div class="successBtn" @click="toHome">返回列表</div>
    </div>
</template>
<script>
export default {
    name: 'submitSuccess',
    data(){
        return {
            //defaultRating: 0,
        }
    },
    methods:{
        toHome(){
            this.$router.push({path:'/index'})
        }
    }
}
</script>
<style>
    html,body{
        background-color: #fff;
    }
</style>
<style lang="scss" scoped>
    .successBox{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-top: 25%;
        .successTop{
            .successTip{
                padding-top: 1rem;
                font-size: 0.75rem;
            }
            .successIcon{
                margin: auto;
                display: block;
                width: 3rem;
                height: 3rem;

            }
        }
        .successBtn{
            margin-top: 1rem;
            width: 9.5rem;
            text-align: center;
            padding: 0.5rem;
            font-size: 0.75rem;
            border-radius: 0.2rem;
            background-color: #ffd945;
        }
    }
</style>